package cn.tunyun.service.impl;

import cn.tunyun.domain.User;
import cn.tunyun.query.BaseQuery;
import cn.tunyun.repository.UserRepository;
import cn.tunyun.service.IUserService;
import org.springframework.data.domain.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserServiceImpl implements IUserService  {

    @Autowired
   private  UserRepository userRepository;
    @Override
    public void save(User user) {

    }

    @Override
    public void delete(Long aLong) {

    }

    @Override
    public User findOne(Long aLong) {
        return null;
    }

    @Override
    public List<User> findAll() {
        List<User> all = userRepository.findAll();
        return all;
    }


}
